package com.lc.afbx.activity;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.TextView;

import com.lc.afbx.R;
import com.lc.afbx.conn.Conn;

/**
 * Created by Administrator on 2016/5/30.
 */
public class NewsDetailsActivity extends BaseActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_news_detail);

//            //得到的id是news.get(position).id, url+id查询列表

        ((WebView) findViewById(R.id.news_detail_wv)).loadUrl(Conn.SERVICE + Conn.INLET_API_INFORMATION_DETAIL + "?id=" + getIntent().getStringExtra("id"));
        ((TextView) findViewById(R.id.news_detail_title_tv)).setText(getIntent().getStringExtra("title"));

    }

    @Override
    public void onClick(View view) {

        switch (view.getId()) {

            case R.id.back:
                finish();
                break;
        }
    }
}
